package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.THospitalMapper;
import com.ruoyi.system.domain.THospital;
import com.ruoyi.system.service.ITHospitalService;

/**
 * 医院信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-25
 */
@Service
public class THospitalServiceImpl implements ITHospitalService 
{
    @Autowired
    private THospitalMapper tHospitalMapper;

    /**
     * 查询医院信息
     * 
     * @param hid 医院信息ID
     * @return 医院信息
     */
    @Override
    public THospital selectTHospitalById(Long hid)
    {
        return tHospitalMapper.selectTHospitalById(hid);
    }

    /**
     * 查询医院信息列表
     * 
     * @param tHospital 医院信息
     * @return 医院信息
     */
    @Override
    public List<THospital> selectTHospitalList(THospital tHospital)
    {
        return tHospitalMapper.selectTHospitalList(tHospital);
    }

    /**
     * 新增医院信息
     * 
     * @param tHospital 医院信息
     * @return 结果
     */
    @Override
    public int insertTHospital(THospital tHospital)
    {
        return tHospitalMapper.insertTHospital(tHospital);
    }

    /**
     * 修改医院信息
     * 
     * @param tHospital 医院信息
     * @return 结果
     */
    @Override
    public int updateTHospital(THospital tHospital)
    {
        return tHospitalMapper.updateTHospital(tHospital);
    }

    /**
     * 批量删除医院信息
     * 
     * @param hids 需要删除的医院信息ID
     * @return 结果
     */
    @Override
    public int deleteTHospitalByIds(Long[] hids)
    {
        return tHospitalMapper.deleteTHospitalByIds(hids);
    }

    /**
     * 删除医院信息信息
     * 
     * @param hid 医院信息ID
     * @return 结果
     */
    @Override
    public int deleteTHospitalById(Long hid)
    {
        return tHospitalMapper.deleteTHospitalById(hid);
    }
}
